import re

def many_match():
    words=['bat','bit', 'but', 'hat', 'hit', 'hut']
    for word in words:
        ret=re.match('[bh][aiu]t',word)
        if ret:
            print(ret.group())
        else:
            print('不匹配')

if __name__ == '__main__':
    many_match()